<?php //debug($planos);?>
<?php echo $this->Form->create('facturas', array('action' => 'facturas')); ?>
<div class="widget">
    <div class="whead"><h6>LISTADO DE FACTURAS</h6><div class="clear"></div></div>
    <div class="shownpars">
        <table cellpadding="0" cellspacing="0" border="0" class="dTable">
            <thead>
                <tr>
                    <th>Nro</th>
                    <th>Codigo</th>
                    <th>Tipo</th>
                    <th>Grupo</th>
                    <th>Nro. de Caja</th>
                    <th>Fecha 1</th>
                    <th>Fecha 2</th>
                </tr>
            </thead>
            <tbody>
                <?php $i = 1; ?>
                <?php foreach ($facturas as $fac): ?>                
                <tr class="gradeX">
                <td><?php echo $i; $i++; ?></td>
                <td><?php echo $fac['Factura']['codigo'];?></td>                                                                                                 
                <td><?php echo $fac['Factura']['tipo'];?></td> 
                <td><?php echo $fac['Factura']['grupo'];?></td>
                <td><?php echo $fac['Factura']['caja'];?></td> 
                <td><?php echo $fac['Factura']['fecha1'];?></td>
                <td><?php echo $fac['Factura']['fecha2'];?></td>              
                                            
<?php //echo $this->Html->link('EDITAR',array('action'=>'editar',$fac['Factura']['id']));?>                               
<?php //echo $this->Html->Link('ELIMINAR', array('action' => 'eliminar', $fac['Factura']['id']), array('confirm' => "Seguro de eliminar ?"));?>
            

            </tr>
                <?php endforeach; ?>                
            </tbody>
        </table>
    </div> 
</div> 
<?php echo $this->Html->link('INSERTAR NUEVA FACTURA',array('action'=>'insertar'),array('class'=>'buttonS bGreen'));?>


  